﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.Services;
using GamePlusClassLibrary;

namespace GamePlusAdmin.WebService
{
    /// <summary>
    /// Summary description for AutoComplete
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    [System.Web.Script.Services.ScriptService]

    public class AutoComplete : System.Web.Services.WebService
    {
        [WebMethod]
        public List<Tags> AutoCompleteTags(string top, string texto)
        {
            return Tags.Listar(int.Parse(top), texto);
        }
    }
}
